3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides routines that you can use to get shape parts and mesh parts and to determine the shape objects that correspond to those parts. They use these types:
typedef TQ3ShapePartObject TQ3MeshPartObject;
typedef TQ3MeshPartObject TQ3MeshFacePartObject;
typedef TQ3MeshPartObject TQ3MeshEdgePartObject;
typedef TQ3MeshPartObject TQ3MeshVertexPartObject;
You can use the Q3ShapePart_GetShape function to get the shape object that contains a shape part object.
TQ3Status Q3ShapePart_GetShape (
TQ3ShapePartObject shapePartObject,
TQ3ShapeObject *shapeObject);
You can use the Q3ShapePart_GetType function to get the type of a shape part object.
TQ3ObjectType Q3ShapePart_GetType (TQ3ShapePartObject shapePartObject);
The Q3ShapePart_GetType function returns, as its function result, the type identifier of the shape part object specified by the shapePartObject parameter. If successful, Q3ShapePart_GetType returns this constant:
kQ3ShapePartTypeMeshPart
If the type cannot be determined or is invalid, Q3ShapePart_GetType returns the value kQ3ObjectTypeInvalid .
You can use the Q3MeshPart_GetType function to get the type of a mesh part object.
TQ3ObjectType Q3MeshPart_GetType (TQ3MeshPartObject meshPartObject);
The Q3MeshPart_GetType function returns, as its function result, the type identifier of the mesh part object specified by the meshPartObject parameter. If successful, Q3MeshPart_GetType returns one of these constants:
kQ3MeshPartTypeMeshFacePart
kQ3MeshPartTypeMeshEdgePart
kQ3MeshPartTypeMeshVertexPart
If the type cannot be determined or is invalid, Q3MeshPart_GetType returns the value kQ3ObjectTypeInvalid .
You can use the Q3MeshPart_GetComponent function to get the mesh component that contains a mesh part.
TQ3Status Q3MeshPart_GetComponent (
TQ3MeshPartObject meshPartObject,
TQ3MeshComponent *component);
You can use the Q3MeshFacePart_GetFace function to get the mesh face that corresponds to a mesh face part.
TQ3Status Q3MeshFacePart_GetFace (
TQ3MeshFacePartObject meshFacePartObject,
TQ3MeshFace *face);
You can use the Q3MeshEdgePart_GetEdge function to get the mesh edge that corresponds to a mesh edge part.
TQ3Status Q3MeshEdgePart_GetEdge (
TQ3MeshEdgePartObject meshEdgePartObject,
TQ3MeshEdge *edge);
You can use the Q3MeshVertexPart_GetVertex function to get the mesh vertex that corresponds to a mesh vertex part.
TQ3Status Q3MeshVertexPart_GetVertex (
TQ3MeshVertexPartObject meshVertexPartObject,
TQ3MeshVertex *vertex);
Previous | QD3D Book | Overview | Chapter Contents | Next |